package com.rocpenghua.design.command;

/**
 * @author pengp
 * @date 2023年02月23日 11:03
 */
public class MainTest {
    public static void main(String[] args) {
        Controller controller = new Controller();
        TurnOffLight turnOffLight = new TurnOffLight(new Light("roc"));
        controller.commandUndo(turnOffLight);
        controller.commandExecute(turnOffLight);
    }
}
